﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReflectAndMetadata
{
    public class BaseTypeAndInterfaces
    {
        public void ShowBaseTypeAndInterFace()
        {
            Type base1 = typeof(StringBuilder).BaseType;
            Type base2 = typeof(System.IO.FileStream).BaseType;
            Console.WriteLine(base1.Name);
            Console.WriteLine(base2.Name);
            foreach (Type iType in typeof(Guid).GetInterfaces())
                Console.WriteLine(iType.Name);

        }
    }
}
